package com.ttj.controller.purchaser;

import java.util.List;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ttj.domain.oracle.SysconfRecCategory;
import com.ttj.service.OrderRecCategoryService;
import com.ttj.vo.BaseRes;

@Controller
@RequestMapping("purchaser/recCategory")
public class SysconfRecCategoryController {

	@SuppressWarnings("unused")
	private static Logger logger = LoggerFactory.getLogger(SysconfRecCategoryController.class);
	
	@Resource
	private OrderRecCategoryService categoryService;

	
	/**
	 * 回收品类
	 * @return
	 */
	@RequestMapping(value="/recCategory",method=RequestMethod.GET)
	@ResponseBody
	public BaseRes<List<SysconfRecCategory>> recCategory(){
		return categoryService.recCategoryList();
	}
}
